Use the functions described in this section to get and modify the master tuning of the synthesizer, to play off line, and to allow the music component to perform tasks it must perform at foreground task time.
The MusicGetMasterTune function returns a fixed-point value in semitones, which is the synthesizer's master tuning.
pascal ComponentResult MusicGetMasterTune (MusicComponent mc);
The MusicSetMasterTune function alters the synthesizer's master tuning.
pascal ComponentResult MusicSetMasterTune(
MusicComponent mc,
long masterTune);
The MusicStartOffline function informs the QuickTime music synthesizer that the music will not be played through the speakers. Instead, audio data will be sent to a function that will create a sound file to be played back later.
extern pascal ComponentResult MusicStartOffline(
MusicComponent mc,
unsigned long *numChannels,
UnsignedFixed *sampleRate,
unsigned short *sampleSize,
MusicOfflineDataUPP dataProc,
long dataProcRefCon);
The MusicSetOfflineTimeTo function advances the synthesizer clock when the synthesizer is not running in real time (due to a call to MusicStartOffline).
extern pascal ComponentResult MusicSetOfflineTimeTo(
MusicComponent mc,
long newTimeStamp);
Call the MusicTask function periodically to allow a music component to perform tasks it must perform at foreground task time.
extern pascal ComponentResult MusicTask (MusicComponent mc);
| Previous | Chapter Contents | Chapter Top | Next |